﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpXML
{
    public class XMLAttribute
    {
        private string key;
        private string value;
        private int keyPos;
        private int valuePos;

        public XMLAttribute(string key, int keyPos)
        {
            this.key = key;
            this.keyPos = keyPos;
        }

        public XMLAttribute(string key, int keyPos, string value, int valuePos)
        {
            this.key = key;
            this.keyPos = keyPos;
            this.value = value;
            this.valuePos = valuePos;
        }

        public string getKey()
        {
            return key;
        }

        public string getValue()
        {
            return value;
        }

        public void setKey(string key, int keyPos)
        {
            this.key = key;
            this.keyPos = keyPos;
        }

        public void setValue(string value, int valuePos)
        {
            this.value = value;
            this.valuePos = valuePos;
        }
    }
}
